package com.dengyuanke.entity;

import com.baomidou.mybatisplus.annotations.TableField;
import com.baomidou.mybatisplus.annotations.TableName;
import com.dengyuanke.common.SuperEntity;
import com.dengyuanke.entity.enums.BooleanEnum;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;


/**
 * <p>
 * 购物车
 * </p>
 *
 * @author dengyuanke
 * @since 2017-11-07
 */
@ApiModel("购物车实体类")
@TableName("tb_shopping_cart")
public class ShoppingCart extends SuperEntity<ShoppingCart> {

    private static final long serialVersionUID = 1L;

    /**
     * 创建者id
     */
	@TableField("creator_id")
	@ApiModelProperty("创建者id")
	private String creatorId;
    /**
     * 是否付款0否1是
     */
	@TableField("is_paid")
	private BooleanEnum paid;
	@TableField("goods_id")
	@ApiModelProperty("商品id")
	private String goodsId;
	@TableField("goods_name")
	@ApiModelProperty("商品名字")
	private String goodsName;

	/**
	 * 商品简介
	 */
	@TableField("goods_intro")
	@ApiModelProperty("商品简介")
	private String goodsIntro;

	/**
	 * 总数
	 */
	@ApiModelProperty("总数")
	private Integer total;

	public String getCreatorId() {
		return creatorId;
	}

	public void setCreatorId(String creatorId) {
		this.creatorId = creatorId;
	}

	public BooleanEnum getPaid() {
		return paid;
	}

	public void setPaid(BooleanEnum paid) {
		this.paid = paid;
	}

	public String getGoodsId() {
		return goodsId;
	}

	public void setGoodsId(String goodsId) {
		this.goodsId = goodsId;
	}

	public String getGoodsName() {
		return goodsName;
	}

	public void setGoodsName(String goodsName) {
		this.goodsName = goodsName;
	}

	public Integer getTotal() {
		return total;
	}

	public void setTotal(Integer total) {
		this.total = total;
	}

	public String getGoodsIntro() {
		return goodsIntro;
	}

	public void setGoodsIntro(String goodsIntro) {
		this.goodsIntro = goodsIntro;
	}

	@Override
	public String toString() {
		return "ShoppingCart{" +
				"creatorId='" + creatorId + '\'' +
				", isPaid=" + paid +
				", goodsId='" + goodsId + '\'' +
				", goodsName='" + goodsName + '\'' +
				", goodsIntro='" + goodsIntro + '\'' +
				", total=" + total +
				'}';
	}
}
